package com.lagou.subjectthree;

import java.math.BigDecimal;

/**
 * 套餐基类
 */
public abstract class Combo{
    /**
     * 每月费用
     */
    private BigDecimal MonthCost;

    /**
     * 构造函数
     *
     * @param monthCost
     */
    public Combo(BigDecimal monthCost) {
        System.out.println("父类套餐基础信息");
        setMonthCost(monthCost);
    }

    public abstract void ShowComboInfo();

    public BigDecimal getMonthCost() {
        return MonthCost;
    }

    public void setMonthCost(BigDecimal monthCost) {
        MonthCost = monthCost;
    }
}
